package highTech.proxy.proxyClass;

import highTech.proxy.proxyMethod.ProxyMethod;

import java.util.ArrayList;
import java.util.Collection;


public class MyTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		Collection collection=(Collection) new MyProxy(new ArrayList(), new MyAdvice()).getProxy();
//		collection.add("aa");
//		collection.add("bb");
//		System.out.println(collection.size());
//		
//		Collection collection3=(Collection)ProxyMethod.getProxy(new ArrayList(),  new MyAdvice());
//		collection3.add("cc");
		
		Test tt=(Test) ProxyMethod.getProxy(new TestClass(), new MyAdvice());
		tt.test();
	}

}
